package xyz.lisys.boot.filter;

import javax.servlet.*;
import java.io.IOException;

public class MyCustomFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        // 初始化代码
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        // 过滤逻辑
        chain.doFilter(request, response); // 继续执行链中的下一个Filter或目标资源
    }

    @Override
    public void destroy() {
        // 销毁代码
    }
}
